<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\User;
use Illuminate\Support\Str;
use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/

/**
 */

$factory->define(App\Models\CarModels\CarMaintence::class, function (Faker $faker) {
    return [
        'project'=>$faker->lastName,
        'department'=>$faker->lastName,
        'current_mileage'=>$faker->numberBetween(10000,20000),
        'previous_mileage'=>$faker->numberBetween(10000,20000),
        'next_mileage'=>$faker->numberBetween(10000,20000),
        'maintenance_date'=>$faker->dateTime,
        'previous_maintenance_date'=>$faker->dateTime,
        'desc'=>$faker->name(),
        'car_id'=>$faker->numberBetween(1,20),
        'staff_id'=>$faker->numberBetween(1,5),
        'bill'=>$faker->numberBetween(1000,5000)
    ];
});
